<html>
  <head></head>
  <body></body>
  <script>
    for (const propertyName in window) {
      if (propertyName === "localStorage") {
        console.log(window.propertyName);
      }
    }
  </script>
</html>
